<?php
namespace app\admin\controller;

use app\common\entity\BackResult;
use app\common\entity\Result;

class Admin extends Base{

    public function info(){
        return BackResult::success(
//            [
//                'roles'=>["admin"],
//                'name'=>'名字',
//                'avatar'=>'https://medical-course.oss-cn-shenzhen.aliyuncs.com/uploads/20201028/20201028rf6qgn3y30.jpg',
//                'introduction'=>var_export($user,true)
//            ]
            $this->admin
        );
    }

    public function logout(){
        return BackResult::success([]);
    }

}
